﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Index.Models
{
    public static class ComicImage
    {
        public static string get(string Url)
        {
            if (Url.Contains("blogspot.com"))
            {
                string ReturnUrl = "http://";
                string[] Image = Url.Split('/');
                for (int i = 0; i < Image.Length; i++)
                {
                    if (Image[i].Contains("blogspot.com"))
                    {
                        ReturnUrl += Image[i] + "/" + Image[i + 1] + "/" + Image[i + 2] + "/" + Image[i + 3] + "/" + Image[i + 4] + "/" + "wReplace" + "/" + "ImageSlug.jpg";
                        return ReturnUrl;
                    }

                }
            }
            return Url;
        }
    }
}